
require("TSLib")

local M = {}

M.wid = "wid";

fwShowWnd(M.wid,0,0,200,200,1);


function M.error(text)
	--fwShowTextView(M.wid,"textid",text,"center","FF0000","FFDAB9",20,0,10,10,200,200,0.5);
	nLog(os.date("[%Y-%m-%d %H:%M:%S]",os.time())..":"..text)
	--mSleep(300)
end

function M.warn(text)
	--fwShowTextView(M.wid,"textid",text,"center","FF0000","FFDAB9",20,0,10,10,200,200,0.5);
	nLog(os.date("[%Y-%m-%d %H:%M:%S]",os.time())..":"..text)
	--mSleep(300)
end

function M.info(text)
	--fwShowTextView(M.wid,"textid",text,"center","FF0000","FFDAB9",20,0,10,10,200,200,0.5);
	nLog(os.date("[%Y-%m-%d %H:%M:%S]",os.time())..":"..text)
	--mSleep(300)
end

function M.debug(text)
	nLog(os.date("[%Y-%m-%d %H:%M:%S]",os.time())..":"..text)
	--mSleep(300)
end


function main(...)
	init(1)
	M.debug("test")
end

--main()

return M;